package com.example.clxy.service;

import com.example.clxy.entity.Experiment;
import com.example.clxy.entity.dto.ExperimentDto;
import com.example.clxy.result.PageResult;
import com.example.clxy.result.WebRestResult;
import com.example.clxy.result.business.ExperimentResult;
import com.example.clxy.result.business.PageResult.ExperimentPageResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author liuhaoqi
 * @Date 2020/8/4 10:15
 * @Version 1.0
 */
public interface ExperimentService {

    PageResult<ExperimentPageResult> getExperimentList(String experimentname, String experimenthour
            ,int page,int pagesize,String status);

    WebRestResult addExperiment(ExperimentDto experimentDto);

    WebRestResult updateExperiment(ExperimentDto experimentDto);

    WebRestResult deleteExperiment(String experimentid);

    ExperimentResult getExperimentById(String experimentid);

    WebRestResult uploadExperimentBook(MultipartFile file);

}
